[INFO] cloning repository https://github.com/avraamisvi/pool
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/avraamisvi/pool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9b381692f3b11f221aad9134e2961d10fa37ecf6
[INFO] building avraamisvi/pool against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/avraamisvi/pool on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/avraamisvi/pool
[INFO] finished tweaking git repo https://github.com/avraamisvi/pool
[INFO] tweaked toml for git repo https://github.com/avraamisvi/pool written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/avraamisvi/pool already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 242c8b294b2a5c82b52f6ad227a6577577c2826b866c25c0e2ea812bdfe1c43e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "242c8b294b2a5c82b52f6ad227a6577577c2826b866c25c0e2ea812bdfe1c43e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "242c8b294b2a5c82b52f6ad227a6577577c2826b866c25c0e2ea812bdfe1c43e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "242c8b294b2a5c82b52f6ad227a6577577c2826b866c25c0e2ea812bdfe1c43e", kill_on_drop: false }`
[INFO] [stdout] 242c8b294b2a5c82b52f6ad227a6577577c2826b866c25c0e2ea812bdfe1c43e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 435bc110b7d98c6e6598e80bc64088e808a3f0d21bf5ad29ded54425e18f095d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "435bc110b7d98c6e6598e80bc64088e808a3f0d21bf5ad29ded54425e18f095d", kill_on_drop: false }`
[INFO] [stderr]    Compiling pool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:49:11
[INFO] [stdout]    |
[INFO] [stdout] 49 |         if(self.count == 0) {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/main.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |             return self.in_use.last().clone();
[INFO] [stdout]    |             --------------------------------- any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 78 |         Option::None
[INFO] [stdout]    |         ^^^^^^^^^^^^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:50:37
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 50 |             let entry = Entry{data: self.call_closure(&self.factory)};
[INFO] [stdout]    |                                     ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 51 |             self.in_use.push(Arc::new(entry));
[INFO] [stdout]    |             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.available` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:55:26
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 55 |             return match self.available.pop() {
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:59:52
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 59 |                             let entry = Entry{data:self.call_closure(&self.factory)};
[INFO] [stdout]    |                                                    ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:61:29
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 61 |                             self.in_use.push(Arc::new(entry));
[INFO] [stdout]    |                             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:63:29
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 63 |                             self.increase();
[INFO] [stdout]    |                             ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:71:25
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stdout]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stdout] ...
[INFO] [stdout] 71 |                         self.in_use.push(arc_entry);
[INFO] [stdout]    |                         ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0596`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pool`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "435bc110b7d98c6e6598e80bc64088e808a3f0d21bf5ad29ded54425e18f095d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "435bc110b7d98c6e6598e80bc64088e808a3f0d21bf5ad29ded54425e18f095d", kill_on_drop: false }`
[INFO] [stdout] 435bc110b7d98c6e6598e80bc64088e808a3f0d21bf5ad29ded54425e18f095d
